<?php

class Application_Form_Pagamento extends Zend_Form
{

    public function init()
    {
        $id = new Zend_Form_Element_Hidden('id_pagamento');
		
		
		$data = new Zend_Form_Element_Select('id_dia');
		$data->setLabel('Data: ');
		
		// Search all Species
		$mdlDias = new Application_Model_Dia();
		$recordSet = $mdlDias->selectAll();
		
		$data->addMultiOption('', '');
		// Add Combo
		foreach($recordSet as $key => $value)
		{
			$data->addMultiOption($value['id_dia'], $value['dia']);
		}
		
		$valor = new Zend_Form_Element_Text('valor');
		$valor->setLabel('Valor do Pagamento: ');
		
		$submit = new Zend_Form_Element_Submit('Salvar');
		
		$this->addElements(array($id,$data,$valor,$submit));
    }


}

